<?php
/*
 * mk script file created on 4-mag-2005
 * jaco_at_pixeldump_dot_org
 * getting swf structure
 */

include("sample_utils.php");                        // need to include this to use mk
$si = new MKSwfInspector("vma[1].swf");	        // read swf structure
$xmlStr = $si->fetch_xml();

$xmlOut = fopen(SERVER_MKTMP ."sample01.xml", "w"); // save on file
fwrite($xmlOut, $xmlStr, strlen($xmlStr));          // ...
fclose($xmlOut);                                    // ...

$str = trace_var("please look into tmp for file sample01.xml, it should contain", "", false, false, true);
$str .= trace_var("<pre>" .htmlspecialchars($xmlStr) ."</pre>", "", true, true, true);
echo show_content($str, basename(__FILE__));
?>
